#------------------------------------------------------------------------------
# template.pl
#   Plugin for MacRipper
#   TEMPLATE
#
# Change history
#   20120605 [fpi] % created
#
# References
#
# copyright 201x WhoAreYou
#------------------------------------------------------------------------------

package template;
use strict;

#------------------------------------------------------------------------------

my %config = (
    version         => 20120101,
    hasDescr        => 1,
    hasRefs         => 0,
    applyto			=> 'ios osx',
    srctype			=> "TODO",
   	srcfile		    => "blabla.plist",
   	srcpath		    => "/path/to/ios/file/",
);

sub getConfig       { return %config; }
sub getDescription  { return "TEMPLATE"; }
sub getReferences   { return ""; }
sub getSourcePath   { return $config{srcpath}; }
sub getSourceFile   { return $config{srcfile}; }
sub getSourceType   { return $config{srctype}; }
sub getVersion      { return $config{version}; }
sub getApplyTo      { return $config{applyto}; }

#------------------------------------------------------------------------------
# helpers

my $VERSION = getVersion();
my $tab;
my $tab0 = '';
my $tab1 = '    ';

#------------------------------------------------------------------------------
# Plugins receive the following parameter
# - the class (you must do "my $class = shift" first!)
# - the 'object' that depends on srctype specification
# - the '-z' (timezone) specified

sub pluginmain {
	my $class = shift;
	my $plist = shift;
    my $tzone = shift;
    
	::logMsg("Launching template v.".$VERSION);
    #die "Invalid PLIST object" if ( not defined $plist );

    ::logMsg( "this is a template for you dear plugin writer!" );
    ::rptMsg( "this is a template for you dear plugin writer!" );
}

#------------------------------------------------------------------------------
1;